package com.spring.blog.pojo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class AddRequest {
    @NotNull(message = "userId不可以为null")
    private Integer userId;
    @NotBlank(message = "title不能为空字符")
    private String title;
    @NotBlank(message = "title不能为空字符")
    private String content;
}
